package com.ruoyi.config.service.impl;

import com.ruoyi.config.entity.FileWordConfigEntity;
import com.ruoyi.config.service.IFileWordConfigService;
import com.ruoyi.config.dao.FileWordConfigEntityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FileWordConfigServiceImpl implements IFileWordConfigService {

    @Autowired
    private FileWordConfigEntityMapper fileWordConfigEntityMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return this.fileWordConfigEntityMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(FileWordConfigEntity record) {
        return this.fileWordConfigEntityMapper.insert(record);
    }

    @Override
    public int insertSelective(FileWordConfigEntity record) {
        return fileWordConfigEntityMapper.insertSelective(record);
    }

    @Override
    public FileWordConfigEntity selectByPrimaryKey(String id) {
        return fileWordConfigEntityMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(FileWordConfigEntity record) {
        return fileWordConfigEntityMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(FileWordConfigEntity record) {
        return fileWordConfigEntityMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(FileWordConfigEntity record) {
        return fileWordConfigEntityMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<FileWordConfigEntity> selectByDocLike(String key, String userId) {
        return fileWordConfigEntityMapper.selectByDocLike(key,userId);
    }

    @Override
    public List<FileWordConfigEntity> selectAll(String userId) {
        return fileWordConfigEntityMapper.selectAll(userId);
    }

    @Override
    public List<FileWordConfigEntity> selectByDocLikeAdmin(String key) {
        return fileWordConfigEntityMapper.selectByDocLikeAdmin(key);
    }

    @Override
    public List<FileWordConfigEntity> selectAllAdmin() {
        return fileWordConfigEntityMapper.selectAllAdmin();
    }

    @Override
    public List<FileWordConfigEntity> selectQueryKey(String fileType) {
        return fileWordConfigEntityMapper.selectQueryKey(fileType);
    }

    @Override
    public int deleteFileWordByIds(String[] ids) {
        return fileWordConfigEntityMapper.deleteFileWordByIds(ids);
    }
}
